<?php
class Agitum_Orm_Privilege_Mask
{
    const Create = 1;
    const Read   = 2;
    const Update = 4;
    const Delete = 8;
    
    public static function title(Agitum_Orm_Privilege_Mask $mask) 
    {
        switch($mask) 
        {
            case Agitum_Orm_Privilege_Mask::Create:
                $title = 'create';
                break;
            case Agitum_Orm_Privilege_Mask::Read:
                $title = 'read';
                break;
            case Agitum_Orm_Privilege_Mask::Update:
                $title = 'update';
                break;
            case Agitum_Orm_Privilege_Mask::Delete:
                $title = 'delete';
                break;
            default:
                $title = 'undefined';
                break;
        }
        return $title;
    } 
}